fix position number in templates