Fix version in if-statement