fix ref removal
same