fix install code (thanks Aaron)