Fixed bug in OrientedPartsLayer.