fixed possible bug which could let dynamic deadlocks pass as valid