Fix pointer reference