Error when using next inside a block (not yet implemented)