fix bug about resultClass being Integer