Fix the bug while tags doesn't exist