Fixed a crash when a message with an invalid atom was sent.
Added parentheses to solve ambiguity in nested calls.