Change the parameter type of onShapeAdded.