fixed shaking bug