fix undefined component render