bug fix in the empty constructor