fixed end of empty script