fixing snapshot creation