Fix vibration api detection.