if stmt no else bugfix