fixed bug where handlePost didnt fetch the latest data before saving a new post