Bugfix for Layout<0 crash