changed dtype condition, typo fix