fixed collection name input appending in wrong place