when delete component, status code bug