surfing: fix to make sure it is not too wide