fixed problem with id not passed in post