Fixes a small bug related to having multiple image and/or file fields.