for 0.5.6 1. fix ratio saving