static: fix bug in setup script