fix one more nasty bug with EC compilation