bugfix when adding mail