Fix ec issue