Fixed: writing on existing file