Type initialization exception fixed