AppInstance fix