Fix instance to string conversion