Fixed the OutOfMemoryError when sending a snap