fixing ratio change bug