fixing component bug