fixed a bug in active_directory class