Temporary fix for empty file problem