fix sort on PubDate, last post bug, generate without panic