Fixing alarm of rest