fixes withdrawal bug