Coorected bug on install package checking