Wrong flag being set on important-toggle