Fixed bug in remake_component_get() which was caused by an overwritten variable due to recursive calls