fix mode on setup scirpt