Fixes for get_userdata usage