Fixed empty file detection of own files