Fix log not working after reload