FIxed bug when resolved message is undefined if code is unknown