Fix bugs in recorderjs