To know why it does that, we'll almost certainly need to see the code.