You are right. Without GLIDE it does not happen. But I really need GLIDE to avoid stucking while move in direction of a wall or an entity and let the player jump.
Your second solution was also one of my ideas to avoid this. But never tried it and hoped to get a solution without to use more entities. But I'm glad to hear this works. I can do it in this way while the problem still exists in A7.
Thanks for the answer.