fixed a bug in context display