Resolve undefined 'path=' issue on production server.