fix issue with blocks not being trimmed properly and being too large to be sent over the network