Fix bug of concat operation in some cases