Fix some bugs
Load tag from database