4.2.2 compat

Signed-off-by: Humberto Borba <humberos@gmail.com>