Corrects a bug