Without this change the calculation of fitting items was incorrect, so event.getRemaining() did return 0 when it should not be 0. By: Brokkonaut <hannos17@gmx.de>