change error to base class
fix tag model