highly non-trivial display bug fix