Fix update and install process