Maxcube fix for issue #1599

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>