StackOverflowError in Chunk.collectImportedChunks