fix ref condition