fix reload functionality