Fixed AttributeError bug in !replay