corrects an init bug