Ah yes, I see where the disappearing cube bug occurs (beginning of Level 2, am I right?). It's not intentional. I think I should add a system telling the cube if it has the space to grow or not. If it can, it grows. Otherwise, it stays at its current size. This way, I think it would prevent these annoying bugs.
Thank you for your comment and for the advices :)