avoid NPE