Fixed a bug with using local package