Fixed silly mistake with refId