Fix stray if statement