That's right, the order of bonus selection is to blame. We fixed this bug in v0.5.2. But thank you anyway for your careful and detailed comment!
No worries, happy to see more when I get the chance. Best of luck to future development!