Correct the bug in personal/global factor weight calculation