Fixed minwith not working well in low resolutions