modify array
fix AMDQuery
modify detect