bugfix: crash on empty line