fix typo in exception handling (messages -> message)