fix OutOfMemoryError