fix bugs from rename.