fix the bug that detached skill buttons will not disappear