Unfortunately, there is another problem when loading the
other frames. It does not crash anymore, though.
Not sure what causes the other problem yet.
There is probably a better solution to the problem
this patch solves, but that takes a bit more time
to figure out for me.
Maybe @Sybren A. Stüvel (sybren) wants to solve this differently.