fix for NPE on adapter