fixed bug
enbale checkpointing when no root is set
fixed case were checkpoint is created
but no root is set