bugfix: crash on 0-size box