Fix bug in clicking active stack item twice