Fixes reload sometimes triggering constantly when the class is in a wrong directory.