Fixed bug with userdata