Remove event function fixed.