NLP - Sentiment Analysis Advanced
Find the bug in this advanced sentiment analysis code that handles negations:
```python
def sentiment_score(text):
negations = ['not', 'never']
score = 0.8
for neg in negations:
if neg in text:
score = -score
return score
print(sentiment_score('I am not happy'))
```
