fix broken bounded stack