fix bug.
add error view.