fix bug setup permission, fixed #20