#3 add event onerror. fixed.