sanitize array fix