fixed critical error in service