fix logic errors in compos