Bug fix in OrientedPartsLayer.