Revert "Fix invalid assignment with pointer"