Fixed destruction on error
Avoid string duplication