fix issue with non existing modules
fix issue of protected elements