Fixed wrong binding to window