Issue #6. Fixed bug in ranges module.