Pointer assignment fix