fixed snapshot creation.