Fixed bugs in regtoken display