Fixed a bug on file rename (update).