fixed a bug with error view