fix dev site flag logic