Fix errors for the latest update of gradle.
Fixed issue that cause the event full message never shows up.