Fixed bug in package manager