bugfix for reformatting script