fixed writi to master list bug