Fixed bug where it would return protocol and not param on error.