Fix notification bug in notifications controller