fix vibrate funtion