Fix bug where posts aren't inserted