Fix errors with loading packages