fixed bug where empty components showed anyway