fixing bug with ending else early