fix bug report from John Szumiloski, x range