fix reload code