sma bugfix