Fixed clone not defined error

Cherry-picked (not rly...)

Signed-off-by: Alec Ari <neotheuser@ymail.com>