fixed error with block