fix error where post is empty