Fixed #12

Only getWidth() was concernedby this bug.