[lib] fix last patch that was not correct