Fix blinking during sorting the list