Fixed small bug in local running service and rule manager