Fixed issue with creating posts