fix auto loader