Fixed a bug in DisplayServer