Fixes post function