Fix some scripts