fixed bug with out of phase