window.resize fix