fix dimension input