fixed annoying behavior when apply config
fixed annoying behavior when apply config