fix minor bug writing task config