Fixed Bug for dimensions