Fix to preference initializer not running problem.