Fixing runtime errors on the Ubuntu VM