fixed constructor setting error.