fixed bug with undefined user fields