Revert "fixed empty queue case in score function"

This reverts commit 59e62c3b8e138467f91fdac85ec679a880b2b2b6.