Fix silly range exception