fix top bar if it is too wide