fix dimension type