fix SJM tool bug