fix bug on range control