Fix a few problems that prevented running without a server behind it