Fix state in notification parser