bug fixes in inRange and sparse