appendBuffer threw TypeError
