Fix a few bugs in the web API portion of the system.