fix bug for loading tag file