fix up type arrow bug