Fix bug count data filtered when query is generate by nativequery