Fix sideload parent and undefined var