fixed errors in samples after change in framework