Remove extraneous end.