Small bugfix at triggering onReload event