fix infinte loop preventing service start