Fixed bugs in approvals, fixed #115.