bug in range