Fix display range setting bug