correct some scripts