correct bad top range bound