Fix StackOverflow for methods returning a response object

Closes issue #15