Fixed some unmanaged exception