[#5] Fixed bug with public variables in Window and LogicManager classes which can be changed without any effect afterwards.