Fixed loading packages when a package have some requirements.