bugfix for empty file