fix margin bug