fixed an error display bug