Check failed: value >= 0U (-1 vs. 0) at relay.build

I have commited one fix about this illed situation. Please take a look.