fixed empty file issue