fix setuid order problem