Fixed user export function