Fixed a sm device problem