bugfix for 'sm'