fixed bug with to string