fix warnings in samples