64-bit demo app fix