Fix loading code.