Resolve 500 error on clear tags