fixed crashes for blockdata