Also check config when entering foreground