[3] fix bug to query