fix top and bar