fix reference on condition so :all works