fix repeat block to take blocks