fix sampleapp error