repair little errors