Fix get_diff to print only once (fix #805)

Fix for #805