fixed to retrieve also the events attached as attribute