protect from NPE