fixing the accessing token issue