fixing snapshot bug

small fix for bug that messed up snapshots