fix auto loading