fix service check in tasks