fixed a bug
xuserstate stuff