fixed notice error in get_diff(). Closes #233