fix assertion error wrt negative range display