Crouching also works a lot of the time when this happens. Katana dash is also a very reliable method.