Correcting compile errors