fix generic declaration on mapping query results.