Fix issue with err message