Fix paths for SM