Found a small calculation bug in the stack amount that gets leftover