vosa - fix for problem in apply patch hook