Fixed a server bug when fetch entries with "after"