Fix bug in soft errors handling