fixed null error if no services used null