fix bugs
rm userstate