Fix bug in SamzaEPI