margin bug fix