Fixed example runtime issues