Fixed first ugly preferences ... at least it works