fixed bug with locl in ComponentRegistry