Fixed a bug with when the file coordinate is changed