fix fullscreen crash and read paramaters from XML settings