Fixed resizeEvent