fix generate new pyos on mouseclick