Fix distance calculation for missing terminals
Bump version to 0.0.14