Fixed bug with a range