Solution for buggy slope tiles?

I’m implementing sloped tiles into my game and when they seem to work fine.

I’ve changed the hitboxes, but my only problem is that when player steps on the slope, there’s a split second of animation getting changed to something else (this also applies when I try to connect the slopes to make a bigger slope)

How can I fix this?