Make msg method of DerivativeContext work properly.