fix for NPE in examples handling