Fixed a bug which was causing the post() method to return the wrong object