Fix pointer layout