fix issue when user has not uploaded a file in a field