Fixed issue in dimension parsing