fixed bug in post action