fix local_only check