bug fix when changing block output type