fix concat logic error