fixed bug for set_name method for event