Fixing issue regarding gets and posts