Have tested and fixed the bug; containsKey was not working properly for hashtables.
merge done.