errors in paths evaluation corrected