clean up some warnings in demos