Bugfix: in the if else statement