fix crash on empty line