fixes strange display bug.