fixed issue where ratings were not being saved