Fixed a bug in the way the DN was selected (the last character was missing, due to a bad substring)
Changed paths: