Fix to lookup functions in frametable.cpp - very strange iterator was replaced