-fix HGcreate for old and new API