fix rendering event