Fixed some excepton.