Fixed missing variable userdata

Forgot a line that populates the userdata field