fix source code leak in snapshot