Fixed a bug that was causing rest calls to fail over in most cases, when they shouldn't have been.