Fixes bug when components are missing attributes