fix bag registration