Bug fix

* Fixed infinite loop when queue maximizing score and bonus is empty