bug fix from ref
consistency