Bug fix for empty file field