Fix block code