fixed ratio calculation #287