fixed name confusion of ambient.sobj and M.sobj