Add fix always binding resrc to window.