Corrected type error