Fix on writer file method