Fixed wrong event attribute bug