fix errors in periodic_checks