fixed session.queryPreprocess usage