Fixed determ. problem