Motor repair of air compressor