Fixed concat bug.

Fixed bug pointed out in issue #7