fixed visible range bug