Fix Error 'undefined object' in Paths event helper.