fix incompatible type