Fix warnings

@jmesserly @sigmundch 
This demo isn't working for me, but it doesn't appear to be because of this change.