Fixed backwards compatibility with sm 1.4