updated logic-failure-bug-fix