fix the bug that acts out of expectation