Fixed bug that 'weight' was 'score'