fixed user detection