Fixed bug where frame and bounds were swapped.