Corrected compiler errors