fix undefinder method in user