fixed error when non package name exists on database