Fix crash (java.lang.OutOfMemoryError) in the tutorial