fixed affiliate on api_user bug