fixed str append error