Update 1.2.2

Minor bugfix with window loading, wrong variable