Halo: Bugfix for Layout.java < 0 crash