fix resultType bug