- fixed if-statement