bug fix: delete function query array bug