Fix a bug which divides the degree by 2 which is unnecessary.