Fixed bug in post delete action