fixing nullpointer on build when props are missing