fix alarm error and nav bar.