bugfix the inital window, was  nto being aplied to global