Fix exception message type