Fixed hundreds of notices appearing every page load