fixed issue in strategy.js