Fix server not trimming history.