Fix bug that return wrong cooperative code of user