fix bug with posts not working and trailing object in gets