fix the componment init error