fix exception message access