Fixes a display bug in the list ui