diff --git a/grc_tests/test_bpsk_costas_loop.grc b/grc_tests/test_bpsk_costas_loop.grc
index b8d1183..bb240e3 100644
--- a/grc_tests/test_bpsk_costas_loop.grc
+++ b/grc_tests/test_bpsk_costas_loop.grc
@@ -693,7 +693,7 @@
commandline
- csdr bpsk_costas_loop_cc $(csdr =2*pi/100) 0.707 300 --dd 2>/tmp/cout
+ csdr bpsk_costas_loop_cc $(csdr =2*pi/100) 0.707 5 2>/tmp/cout
comment
diff --git a/libcsdr.c b/libcsdr.c
index 436c589..5cb67d7 100755
--- a/libcsdr.c
+++ b/libcsdr.c
@@ -2083,7 +2083,7 @@ void bpsk_costas_loop_cc(complexf* input, complexf* output, int input_size, bpsk
for(int i=0;inco_phase);
+ e_powj(&nco_sample, s->nco_phase);
cmult(&output[i], &input[i], &nco_sample);
float error = 0;
if(s->decision_directed)