fix bug: if no 'messages' in result, alarm