Sometimes lag happens, if your main did his standard attack before his afterwards then this was the case here.
Also i notice sometimes game tries to speed up fights by playing animations at same time, 2-3 attacks at same time, i had my Kibas pet attack before my main healed, but i am sure on server they did it in right order, just them rushing animations messed it up.