Fixed a bug which caused http remote clone to break.