Fixed an error view bug