empty component attachment bug fixed