Array validations bug fixed