Fixed loadFrame (hopefully)