Resolved a bug in the snapshot creation