Removed warings from MatD and TsdGrid.