Corrects compilation errors