fix loading with monothreading