fixed a bug that caused no-parameters requests to fail