bug fixed: response from POST request threw an exception.