fix current user javascript bug