Fix error on ratio is empty on saving