Bugfix for add