Fixed issues with frame width and height using incorrect values.