Fix Mapping collection #96

Fixed issues in add() function.