fix dimension API