modify ranking algorithm error