Fix all preset directive bugs.