fixed issue with refId