fix calculateScore function. (return~continue)