Fix assert condition in User Interface