fixed NPE, removed debug log