Some fixes in stubnets example