Fix for post function