Corrected compile errors