Fixing bug on window options