small fix distance