fix for empty file in admin editor