fix bug of type coercion in div