corrected a small bug in install method