fix alarm state len