Range works correctly