fixed stupid range bug (closes #119)