Fix sampleapp errors