fix off-by one for ecaine