fixed a bug in display