fix powerpc assembly bugs