Solved bug in random selection state for input with userdata