Fix for wrong window state storing durring ajax request with executes of window content