Issue on resizing window fixed