bug fix on type.