fix bug can not update query