fixed bug in user data storage