fixed replay bug, debug sttments