Fixed bug, where the shaking feature wouldn't work after some time.