fixed a couple bugs in common:get-least-loaded-host