Corrected a bug with packages