fixed blockchain bug