Fixed small bug in additional packages function