rules patch to correct race condition