fix bugs about add and minus, and the select all function