fix pointer control