fix for deprecated approve command and last step status used issue