fix install error s/end/close