Fixed bug with UserDetails