Fixed some issues with resizing with screensize.