Corrects some stuff