Fix error on server reloading