fixed some ranger issue