Fix the bug while tags doesn't exist
Fix the bug