Fix #190 range problem