Fixed an issue with the items loaded event