fix for really ugly display bug