Fix unpatched assignment in commit b33d4b3f

Credits to Nick Altmann for reporting, along with an initial patch
(cherry picked from commit bfcc635c4046bc94017be5166bad8867e98d4f1e)