fix a boolean display bug