Fixed auto-install for packages