Fix bug in function EC_5
Fix typo and add function