fixed withdraw and end-session command