fixed script startup