Fixed bug in service offline handling