Fixed bug in the fmp_add_post function