Fix string overwriting