fix bug (out of range) on response that might not be as expected