Fix user_hash calculation