Fixed a bug in isIdInUse( HashMap<String,Integer> )