Fix constractor of frame class