fixed a issue with a newline in the nested else