fix error message without resource