Bug fix in subm.