Fixing fitbit specific code