fixed bug in when ZC operation is applied