user id bug fixed for preferences