Fixed potential wrong alert id when empty