One tweak to avoid crash on negative cube num