fixed bug that created the first frame with the wrong sizes