sbm script error fix