fix some NPEs because of missing jvm elements