small bug fix

unbound ‘add_point’ when in logger