changing frames no longer gives a segfault