Fixed callback ID bug in samples