Fixed code on swing rating