Fixed bug where old String representation was used