fixing issue with nil ratings