Fix position debug mode