fixed lrange usage