Change window.self to window.field