fixed bug in non-Accelerate code