fixed missing side caps in certain cases