Enhance output system. Fix bug while there are less than 2 packages.