Fixed undefined $package variable