1. bug 3 follow up. 2. File writing problem fixed.