Avoid incompatible type error