Bone in wrong position when apply animation
I figured out that this was happening because of the different rest poses of the armatures. Because my character had legs and arms in different positions, the animation was weird. Fixed the rest pose and all works fine. Hope it helps someone.