lib/core: fix syntax error
lib/core: fix flush period for real