The defending champion survives a scare