Fixed missing = sign in if statement