minor fix in patches