Fix pointer types