Fix wrong type error.