fixed bug introduced by recent error message commit