Solved problem with written patches