Fixed getWidth and getHeight