Fix messy rounded edges in certain circumstances