Fix appmodel error