Bug on updating a model that has an attached file