lib: Fixed bug in strategy calculation