fix / on window detect