Fix coding bug

We need to take the first coding if two coding lines are given.