Fixed some scripts