NOJIRA fix transaction safety in hierarchy builders