small fix to install function