fixed weird alignment issue after resizing view