fix the initial errors