Fixes large document crash for #261.
Fixes large document crash for #261.

ucrcsedept/galah,galah-group/galah,brownhead/galah,brownhead/galah,galah-group/galah,ucrcsedept/galah,brownhead/galah,galah-group/galah,ucrcsedept/galah