bug fixed in hashtable::remove() and in allocateFrame()