fixed error while removing files from a file field