Fixed settings saving. Fixed window on-top