fixed a problem searching for frames when the list is 0