fixed deprecated warnings in history module