implements "Unable to locate frame by index" issue