fix static
apply patches