Bug fix: Transferred flags were ignored