Fix a bunch of crashes on server demo recording