Stamina Problem

This is my stamina system for my character, it works well, but when he is NOT sprinting (whether walking or standing or crouching), the stamina recovers, and when he IS sprinting, it is spent, the problem comes when it is completely spent, once completely spent, the stamina bar recovers but it does not sprint, it does not let me sprint anymore, how do I solve this?

After calling the IncreaseStamina function you need to set Can Sprint to true again.