Fix rotate bugs in esearch-appender