Better error handling

Not sure how a widget side is created with undefined attributes but
better to avoid an error.
0/n was not treated as an integer

When n was different from 1.
Updated compiled version