fixed a bug in the rate bar