Fix elastica compatibility