Fix get last snapshot