Cant maintain a (hold) glide while also having a double jump

Hi, i am trying to put my character into a gliding state after i jump and hold the space bar for a while, but i also have a double jump which is giving me lots of problems with the resets and the hold/release of the gliding.