fix ArgumentError in format message_partial helper