Fix revert undefined value