fixes #478
QueryImpl's function retrieveKnownFields throw ClassCastException