Fixed another bug caused by indentation breaking in script