empty file error fixed