fixed User API bug