fix warning of pointer types