Fix a bug when post title is too long