I think you need to detect which side is being collided with for it to work right.
Maybe you could do something like this?
Sprite on collided with tiledbg
A more robust way could be to compare angles like
Angle(tiledbg.x,tiledbg.y,Sprite.x,Sprite.y) is within 45 degrees or 0
Anyway just some ideas