fixed exception on empty line