Fix wrong logic with display variable