bugfix empty line handling