scheduler: fix on IP checking