fix bugs parsing view instance hooks