Fixed the problem with sm