fix bag in logger model