fix wrong parameter type of block