fix return value in fetch_user_data

Hi!

Current code is somewhat broken. My solution might not be the optimal one, though.