out of range bug fix