fix a bug with install wipes out dependencies