Revision History tool shows undefined error