Fix bug with .empty file