updated sdk to version 1.8.1 and fixed bugs in samples