fixed a bug in next post