fix bug in package manager