fix  bug of getting tags