fixed bug of getting user data twice