fixed error for undefined array
added willRename action