Fix get_last_changes refs #5832