fixed a server crash when document shapes got bigger than 2 MB