fix custom resolve