fixed broken ajax and array options