Added a few patches

Fix boost bug
Fix ranking bug