Errors in generator