fixed CAP disappearing in some case