fixed error with fsrename. we should have return deferd.promise instead of deferd.