fixed bug where incorrect case of dn in objects worked for some things but not for others