Fixed a BUG related to system package recognition functions