small tweak to history so it works on the server