fixed the mode on scripts