Fixed fatal error
Add var dump to show the events