Fix chunkLimit value and deleteHistory feature