Fixed exeptions errors