little refactoring

array field bugfix