Fixed implementation of "force_secure".