fixed upload for nulls