fix issues with static render and app being undefined