Maxcube Fix for issue 1728

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