fixed array errors when submitting multiple values