fix code and name query class correct