user detection fix