fix wrong method type