Fixed loading of modError class