blocks.filter is not a function