Fix pointer usage