Elastica compatibility fix